package test;

import java.text.ParseException;
import java.util.Date;

import yns.time.TimeHelper;

public class testTimeHelper {
	public static void main(String[] args) throws ParseException {
		Date date = new Date();
		long time = System.currentTimeMillis();
		String timeStr = "2014-12-06 19:33:02";
		
		System.out.println("getCurrentTime  : " + TimeHelper.getCurrentTime());
		System.out.println("getStringToDate : " + TimeHelper.getStringToDate(timeStr));
		System.out.println("getDateToString : " + TimeHelper.getDateToString(date));
		System.out.println("getTimeToMillis : " + TimeHelper.getTimeToMillis(2015,2,2,2,2,2));
		System.out.println("getTimeToMillis(date) : " + TimeHelper.getTimeToMillis(date));
		System.out.println("getMillisToTime : " + TimeHelper.getMillisToTime(time));
		System.out.println("getCustomTime(date) : " + TimeHelper.getCustomTime("yyyy-MM",date));
		System.out.println("getCustomTime(long) : " + TimeHelper.getCustomTime("yyyy-MM/dd",time));
	}
}
